﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using System.Data.SqlClient;

namespace DAL
{
    /// <summary>
    /// Summary description for DANguoiDungStation
    /// </summary>
    public class DANguoiDungStation : DbObject
    {
        protected SqlConnection connec;
        public DANguoiDungStation(SqlConnection Connection)
        {
            connec = Connection;
            //
            // TODO: Add constructor logic here
            //
        }

        public DataSet load_station_by_nguoidung(int ip_i_nguoidung_id)
        {
            SqlParameter[] parameters =  {	
                                             new SqlParameter("@NguoiDungId", SqlDbType.Int,4) ,                              
										 };
            // set the 0values
            parameters[0].Value = ip_i_nguoidung_id;
            // create the parameter
            DataSet ds_dm_truong = RunProcedure("sp_NguoiDungStation_load_station_by_nguoidung", parameters, "TB_NguoiDungStation", connec);
            return ds_dm_truong;
        }
    }
}